/*
 * Created on 2005-7-7
 */
/**
 * 
 */
package com.linkage.lcims.base.po.customer;

import java.io.Serializable;
import java.util.Date;

import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

/**
 * @author Administrator
 *
 */
@SuppressWarnings("serial")
public class MCustomerBak implements Serializable {
	/** identifier field */
    private long serno;
    
	/** persistent field */
    private String customername;
    
    /** persistent field */
    private Integer customerid;
    
    /** persistent field */
    private Integer customertype;
    
    /** persistent field */
    private String accounttype;
    
    /** persistent field */
    private String password;
    
    /** persistent field */
    private Integer passwordtype;
    
    /** persistent field */
    private String areano;

    /** nullable persistent field */
    private String newareano;
    
    /** nullable persistent field */
    private String realname;
    
    /** nullable persistent field */
    private Date birthday;
    
    /** nullable persistent field */
    private String corpname;
    
    /** nullable persistent field */
    private Integer certtype;
    
    /** nullable persistent field */
    private String certificate;
    
    /** nullable persistent field */
    private Integer sex;
    
    /** nullable persistent field */
    private Integer occtype;
    
    /** nullable persistent field */
    private Integer educode;
    
    /** nullable persistent field */
    private String address;
    
    /** nullable persistent field */
    private String contactman;
    
    /** nullable persistent field */
    private String contactphone;
    
    /** nullable persistent field */
    private String email;
    
    /** nullable persistent field */
    private Integer status;
    
    /** persistent field */
    private Date opendate;
    
    /** nullable persistent field */
    private Date pausedate;
    
    /** persistent field */
    private Date closedate;
    
    /** nullable persistent field */
    private Date moddate;
    
    /** nullable persistent field */
    private String modoperator;
    
    /** persistent field */
    private String openoperator;
    
    /** nullable persistent field */
    private String servicelist;
    
    /** nullable persistent field */
    private String accname;
    
    /** nullable persistent field */
    private String description;
    
    /** nullable persistent field */
    private String reserved1;
    
    /** nullable persistent field */
    private String reserved2;
    
    /** nullable persistent field */
    private Date baktime;

    public MCustomerBak(long serno){
    	this.serno = serno;
    }
	public MCustomerBak() {
	}
	public String getAccname() {
		return accname;
	}
	public void setAccname(String accname) {
		this.accname = accname;
	}
	public String getAccounttype() {
		return accounttype;
	}
	public void setAccounttype(String accounttype) {
		this.accounttype = accounttype;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public String getAreano() {
		return areano;
	}
	public void setAreano(String areano) {
		this.areano = areano;
	}
	public Date getBaktime() {
		return baktime;
	}
	public void setBaktime(Date baktime) {
		this.baktime = baktime;
	}
	public Date getBirthday() {
		return birthday;
	}
	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}
	public String getCertificate() {
		return certificate;
	}
	public void setCertificate(String certificate) {
		this.certificate = certificate;
	}
	public Integer getCerttype() {
		return certtype;
	}
	public void setCerttype(Integer certtype) {
		this.certtype = certtype;
	}
	public Date getClosedate() {
		return closedate;
	}
	public void setClosedate(Date closedate) {
		this.closedate = closedate;
	}
	public String getContactman() {
		return contactman;
	}
	public void setContactman(String contactman) {
		this.contactman = contactman;
	}
	public String getContactphone() {
		return contactphone;
	}
	public void setContactphone(String contactphone) {
		this.contactphone = contactphone;
	}
	public String getCorpname() {
		return corpname;
	}
	public void setCorpname(String corpname) {
		this.corpname = corpname;
	}
	public Integer getCustomerid() {
		return customerid;
	}
	public void setCustomerid(Integer customerid) {
		this.customerid = customerid;
	}
	public String getCustomername() {
		return customername;
	}
	public void setCustomername(String customername) {
		this.customername = customername;
	}
	public Integer getCustomertype() {
		return customertype;
	}
	public void setCustomertype(Integer customertype) {
		this.customertype = customertype;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public Integer getEducode() {
		return educode;
	}
	public void setEducode(Integer educode) {
		this.educode = educode;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public Date getModdate() {
		return moddate;
	}
	public void setModdate(Date moddate) {
		this.moddate = moddate;
	}
	public String getModoperator() {
		return modoperator;
	}
	public void setModoperator(String modoperator) {
		this.modoperator = modoperator;
	}
	public String getNewareano() {
		return newareano;
	}
	public void setNewareano(String newareano) {
		this.newareano = newareano;
	}
	public Integer getOcctype() {
		return occtype;
	}
	public void setOcctype(Integer occtype) {
		this.occtype = occtype;
	}
	public Date getOpendate() {
		return opendate;
	}
	public void setOpendate(Date opendate) {
		this.opendate = opendate;
	}
	public String getOpenoperator() {
		return openoperator;
	}
	public void setOpenoperator(String openoperator) {
		this.openoperator = openoperator;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public Integer getPasswordtype() {
		return passwordtype;
	}
	public void setPasswordtype(Integer passwordtype) {
		this.passwordtype = passwordtype;
	}
	public Date getPausedate() {
		return pausedate;
	}
	public void setPausedate(Date pausedate) {
		this.pausedate = pausedate;
	}
	public String getRealname() {
		return realname;
	}
	public void setRealname(String realname) {
		this.realname = realname;
	}
	public String getReserved1() {
		return reserved1;
	}
	public void setReserved1(String reserved1) {
		this.reserved1 = reserved1;
	}
	public String getReserved2() {
		return reserved2;
	}
	public void setReserved2(String reserved2) {
		this.reserved2 = reserved2;
	}
	public long getSerno() {
		return serno;
	}
	public void setSerno(long serno) {
		this.serno = serno;
	}
	public String getServicelist() {
		return servicelist;
	}
	public void setServicelist(String servicelist) {
		this.servicelist = servicelist;
	}
	public Integer getSex() {
		return sex;
	}
	public void setSex(Integer sex) {
		this.sex = sex;
	}
	public Integer getStatus() {
		return status;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}
	
	public String toString() {
        return new ToStringBuilder(this)
            .append("serno", getSerno())
            .toString();
    }

    public boolean equals(Object other) {
        if ( !(other instanceof MCustomerBak) ) return false;
        MCustomerBak castOther = (MCustomerBak) other;
        return new EqualsBuilder()
            .append(this.getSerno(), castOther.getSerno())
            .isEquals();
    }

    public int hashCode() {
        return new HashCodeBuilder()
            .append(getSerno())
            .toHashCode();
    }
}
